<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>ProMRDS Ball Following</title>
<link href="../Styles/Standard.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%">
<tr>
<td width="200"><a href="http://www.ProMRDS.com"><img src="../Images/HomeIcon.gif" alt="ProMRDS Home Page" border="0" width="200" height="60" /></a></td>
<td width="*" align="center"><img src="Images/BallFollowing.gif" alt="Ball Following" /></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
</table>

<div class="page">
<p class="heading"><span class="smallhead">Professional</span><br />&nbsp;&nbsp;&nbsp;Microsoft Robotics Developer Studio<br />
<a href="http://www.ProMRDS.com" onmouseout="Home.src='../Images/Home.gif';" onmouseover="Home.src='../Images/Home_f2.gif';"><img name="Home" src="../Images/Home.gif" width="150" height="25" border="0" alt="Home Page" /></a>
<a href="../ReadMe.htm" onmouseout="Contents.src='../Images/Contents.gif';" onmouseover="Contents.src='../Images/Contents_f2.gif';"><img name="Contents" src="../Images/Contents.gif" width="150" height="25" border="0" alt="Book Contents" /></a>
<a href="ReadMe.htm" onmouseout="ThisChapter.src='../Images/ThisChapter.gif';" onmouseover="ThisChapter.src='../Images/ThisChapter_f2.gif';"><img name="ThisChapter" src="../Images/ThisChapter.gif" width="150" height="25" border="0" alt="This Chapter" /></a>
</p>

<h1>Ball Following</h1>

<h2>Purpose</h2>
<p>
Following a ball is a good test for visual tracking. This example
uses the Simple Vision service to locate a bright orange ball and
the drives the motors on a simulated CoroBot to follow it.
</p>

<h2>Description</h2>
<p>
The BallCourt service is required to make this example work. It provides
the simulated environment which contains a CoroBot, a rectangular brick
wall (so the ball and the robot cannot escape) and a ball that is given
an initial speed. The ball does not lose any momentum due to friction
because the ground and the walls are made "slippery".
</p>

<p>
The following is a screenshot of a CoroBot following a ball:
</p>
<img src="Images/FollowBall_Sim.JPG" alt="Ball Following" />

<p>
The Simple Vision service is provided with MRDS. It allows an object
to be tracked based on its color. Ignore some of the labels. The UI
is designed for hand/face tracking and gesture recognition.
</p>
<img src="Images/SimpleVision.JPG" alt="Simple Vision UI" />

<p>
What happens when the robot catches the ball? Is it like a
dog chasing a car?
</p>

</div>

<hr />
<div class="footer">
Page maintained by:
<a href="m&#97;&#105;&#108;t&#111;:webmaster&#64;promrds&#46;com">webmaster&#64;promrds.com</a><br />
Last Updated: Mar-2008
</div>

</body>
</html>
